<?xml version="1.0" encoding="utf8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single Series Chart</title>
<link rel="stylesheet" href="../../Contents/Style.css" type="text/css" />
<script language="JavaScript" src="../../JSClass/FusionCharts.js"></script>
</head>
<%
def countuser(lao_code)
	count = Ureport.count(:all, :conditions=>["created_at>=? AND created_at<=? AND lao_code = ?",  session[:report_startdate], session[:report_enddate], lao_code])
	return count.to_s
end
%>
<body>
<%=will_paginate @laos%>
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
  <tr><th>รหัส อปท.<th><th>ชื่อ อปท.<th><th>จำนวน user ในระบบ</th></tr>
 <%@laos.each do |lao|%>
  <tr><td><%=lao.code%><td><td><%=lao.th%><td><td><%=countuser(lao.code)%></td></tr>
 <%end%>
</table>
<%=will_paginate @laos%>
</body>
</html>